using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;

namespace ServerFramework.Implementation.Database.Mapping {
    
    
    public class HandlerMap : ClassMap<Domain.Handler_T> {

        public HandlerMap()
        {
            Schema("mseconfig");
            Table("handlers");
            CompositeId().KeyProperty(x => x.ServerType, "ServerType")
                         .KeyProperty(x => x.Handlertype, "HandlerType")
                         .KeyProperty(x => x.Operation, "Operation")
                         .KeyProperty(x => x.Suboperation, "SubOperation")
                         .KeyProperty(x => x.Serverhandler, "ServerHandler")
                         .KeyProperty(x => x.Clienthandler, "ClientHandler");
        }
    }
}
